Boxes

These next three commands for making LR-boxes all existed in LATEX~2.09. They have been enhanced in two ways.
#decl312#
One small but far-reaching change for LATEX2e is that, within the <#324#>width<#324#> argument only, four special lengths can be used. These are all dimensions of the box that would be produced by using simply ||<#325#>text<#325#>:
 ||;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;its height above the baseline;
 ||;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;its depth below the baseline;
 ||;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;the sum of || and ||;
 ||;SPMnbsp;;SPMnbsp;;SPMnbsp;;SPMnbsp;its width.
Thus, to put `hello' in the centre of a box of twice its natural width, you would use:
verbatim50#
Or you could put f into a square box, like this: #math71##tex2html_wrap1284#
verbatim51#
Note that it is the total width of the framed box, including the frame, which is set to ||. The other change is a new possibility for <#334#>pos<#334#>: |s| has been added to |l| and |r|. If <#335#>pos<#335#> is |s| then the text is stretched the full length of the box, making use of any `rubber lengths' (including any inter-word spaces) in the box's contents. If no such `rubber length' is present, an `underfull box' will probably be produced.
#decl336#
As for the box commands above, ||, ||, etc.~may be used in the <#350#>height<#350#> argument to denote the natural dimensions of the box. The <#351#>inner-pos<#351#> argument is new in LATEX2e. It is the vertical equivalent to the <#352#>pos<#352#> argument for ||, etc, determining the position of <#353#>text<#353#> within the box. The <#354#>inner-pos<#354#> may be any one of |t|, |b|, |c|, or |s|, denoting top, bottom, centred, or `stretched' alignment respectively. When the <#355#>inner-pos<#355#> argument is not specified, LATEX gives it same value as <#356#>pos<#356#> (this could be the latter's default value).
#decl357#
This is an environment which does not directly print anything. Its effect is to save the typeset <#363#>text<#363#> in the bin <#364#>cmd<#364#>. Thus it is like | | <#365#>cmd<#365#> <#366#>text<#366#>, except that any white space before or after the contents <#367#>text<#367#> is ignored. This is very useful as it enables both the |1#math72##tex2html_wrap_inline1346#|. The following example defines an environment, called |fmpage|, that is a framed version of |minipage|.
verbatim52#